import Layout from "../views/layout/Layout";

export const appSettingRoute = [
  {
    path: "",
    component: Layout,
    redirect: "/appSetting/apply/follow",
    name: "appSetting",
    meta: {
      title: "应用管理",
    },
    children: [
      {
        path: "",
        component: () => import("@/views/appSetting/wxReply/replly"),
        name: "appSettingReplly",
        meta: { title: "自动回复", icon: "" },
        redirect: "/appSetting/apply/follow",
        children: [
          {
            path: "appSetting/apply/follow",
            component: () => import("@/views/appSetting/wxReply/follow"),
            name: "follow",
            meta: { title: "微信关注回复", icon: "" },
          },
          {
            path: "appSetting/apply/keyword",
            component: () => import("@/views/appSetting/wxReply/keyword"),
            name: "keyword",
            meta: { title: "关键词回复", icon: "" },
          },
          {
            path: "appSetting/apply/applyIndex",
            component: () => import("@/views/appSetting/wxReply/replyIndex"),
            name: "applyIndex",
            meta: { title: "无效关键字回复", icon: "" },
          },
        ],
      },
      {
        path: "appSetting/wxMenus",
        component: () => import("@/views/appSetting/publicAccount/wxMenus"),
        name: "wxMenus",
        meta: { title: "微信菜单", icon: "" },
      },
    ],
  },
];
